// 创建store
import { legacy_createStore as createStore, applyMiddleware } from 'redux'
// 1.调试redux数据
import { composeWithDevTools } from 'redux-devtools-extension'
// 2.处理异步action
import thunk from 'redux-thunk'
import reducer from './reducers'
// 3.合并
const store = createStore(reducer, composeWithDevTools(applyMiddleware(thunk)))
export default store
